<div  ng-include="'partials/common/crumb/crumb.html'"></div>
<div id="removeacl" ng-controller="reduceaclCtrl" ng-init="init()">
    <div class="_item">
        <label >{{'CURRENT_MODE' | translate}}</label>
        <input ng-show="reduceACL.acl == 0" type="text" value="黑名单模式"  disabled>
        <input ng-show="reduceACL.acl == 1" type="text" value="白名单模式"  disabled>
    </div>
    <div class="_item" ng-show="secpwd">
        <form action="">
            <label >{{'SECOND_PASSWORD' | translate}}</label>
            <input type="password" ng-model="secondPassword" autocomplete="off">
        </form>
    </div>
    <div class="_item">
        <label >{{'CURRENT_LIST' | translate}}</label>
        <div class="tablewrap">
            <table class="table"ng-table="listparams" border="0" width="100%" cellpadding="0" cellspacing="0"
                   template-pagination="custom/pager" >
                <tr class="table_wrap_tr" ng-repeat="i in $data"  >
                    <td><input type="checkbox" class="item_input" ng-disabled="i.voted" ng-checked="i.voted || (i.address | savecheckpbulish)" ng-click="checkitem(i)"></td>
                    <td> {{i.address }}</td>
                </tr>
            </table>
        </div>

    </div>

    <button class="sent" ng-click="updateAcl()">{{'SUBMIT' | translate}}</button>
    <div id="comfirmacl" ng-show="comfirmDialog">
        <p>{{'OPERATION_REQUIRES_FEE' | translate}} {{ reduceacltrs.fee | xasFilter}} XAS</p>
        <button class="sent" ng-click="comfirmDialogClose()">{{'CANCEL' | translate}}</button>
        <button class="sent" ng-click="comfirmSub()">{{'CONFIRM' | translate}}</button>
    </div>
</div>
<script type="text/ng-template" id="custom/pager">
    <ul class="pagination ng-table-pagination">
        <li ng-class="{'disabled': !page.active && !page.current, 'active': page.current}" ng-repeat="page in pages" ng-switch="page.type">
            <a ng-switch-when="prev" ng-click="params.page(page.number)" href="">
                <i class="mdi-hardware-keyboard-arrow-left">{{'PREV_PAGE' | translate}}</i>
            </a>
            <a ng-switch-when="first" ng-click="params.page(page.number)" href="">
                <span ng-bind="page.number"></span>
            </a>
            <a ng-switch-when="page" ng-click="params.page(page.number)" href="">
                <span ng-bind="page.number"></span>
            </a>
            <a ng-switch-when="more" ng-click="params.page(page.number)" href="">&#8230;</a>
            <a ng-switch-when="last" ng-click="params.page(page.number)" href="">
                <span ng-bind="page.number"></span>
            </a>
            <a ng-switch-when="next" ng-click="params.page(page.number)" href="">
                <i class="mdi-hardware-keyboard-arrow-right">{{'NEXT_PAGE' | translate}}</i>
            </a>
        </li>
    </ul>
</script>